package com.example.springbootdemo.异步注解失效测试.controller;

import com.example.springbootdemo.异步注解失效测试.service.PrintOne;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("aone")
@RestController
public class AsyncOneController {
    @Resource
    PrintOne printOne;
    @RequestMapping("one")
    public String test1() {
        System.out.println("--------");
        printOne.java();
        System.out.println("++++++=++");
        return "1111112222222222";
    }
}
